﻿using Magic.Core;
using System;
using System.ComponentModel.DataAnnotations;

namespace Magic.Application
{
    /// <summary>
    /// 测试表输入参数
    /// </summary>
    public class TestInput : PageInputBase
    {
        /// <summary>
        /// Name
        /// </summary>
        public virtual string Name { get; set; }
        
        /// <summary>
        /// Age
        /// </summary>
        public virtual int Age { get; set; }
        
        /// <summary>
        /// Birthday
        /// </summary>
        public virtual DateTime Birthday { get; set; }
        
        /// <summary>
        /// Balance
        /// </summary>
        public virtual decimal Balance { get; set; }
        
    }

    public class AddTestInput : TestInput
    {
    }

    public class DeleteTestInput
    {
        /// <summary>
        /// Id
        /// </summary>
        [Required(ErrorMessage = "Id不能为空")]
        public int Id { get; set; }
        
    }

    public class UpdateTestInput : TestInput
    {
        /// <summary>
        /// Id
        /// </summary>
        [Required(ErrorMessage = "Id不能为空")]
        public int Id { get; set; }
        
    }

    public class QueryeTestInput : DeleteTestInput
    {

    }
}
